package com.testfileupload.uploadimg.design.bridge.define;
//抽象化角色
public class Abstraction {
    //定义对实现化的引用
    private Implementor implementor;

    public Abstraction(Implementor implementor) {
        this.implementor = implementor;
    }
    //自身行为和属性
    public void request(){
        this.implementor.doSomething();
    }
    //获得实现化角色

    public Implementor getImplementor() {
        return implementor;
    }
}
